package com.cloudpivot.receivales.contract.entity.bpmcontract;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * BPM 合同替换数据库对象
 * 用于获取数据库
 */
@Data
@Entity
@Table(name = "izch0_newcontractreplace")
public class BpmContractReplaceV3Entity {
    /**
     * 数据库id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 创建人部门
     */
    @Column(name="createdDeptId")
    private String createdDeptId;

    /**
     * 创建人员 id
     */
    @Column(name = "creater")
    private String creater;
    /**
     * 流程自动标题
     */
    @Column(name = "name")
    private String name;
    /**
     * 流程编号
     */
    @Column(name = "sequenceNo")
    private String sequenceNo;
    /**
     * 客户的id(crm)
     */
    @Column(name = "crmCustomerId")
    private String crmCustomerId;

    /**
     * 客户的名称
     */
    @Column(name = "new_kehu")
    private String new_kehu;

    /**
     * 合同开始时间
     */
    @Column(name = "new_dstart")
    private String new_dstart;
    /**
     * 合同结束时间
     */
    @Column(name = "new_dend")
    private String new_dend;
    /**
     * 申请说明
     */
    @Column(name = "offerMsg")
    private String offerMsg;
    /**
     * 新报价合计
     */
    @Column(name = "newContractOffer")
    private Double newContractOffer;
    /**
     * 合同签订日期
     */
    @Column(name = "new_contract_id")
    private String new_contract_id;
    /**
     * 单一产品报价 JSON
     */
    @Column(name = "offerJson")
    private String offerJson;
    /**
     * 标准套报价 JSON
     */
    @Column(name = "groupJson")
    private String groupJson;

}
